﻿Imports Ita.ProElicere.Dao
Imports Ita.ProElicere.Dao.Ita.ProElicere.Dao

Namespace Ita.ProElicere.Business

    Public Class UserBO

        Private _dao As IUserDao

        Public Sub New()
            _dao = New Dao.SqlServer.Ita.ProElicere.UserDao()
        End Sub
        Public Sub New(dao As IUserDao)
            _dao = dao
        End Sub


        Public Function Load(entity As Model.Ita.ProElicere.Model.User) As Model.Ita.ProElicere.Model.User

            Load = _dao.Load("", entity)

        End Function


        Public Function SelectAll() As List(Of Model.Ita.ProElicere.Model.User)

            SelectAll = _dao.SelectAll("")

        End Function

    End Class

End Namespace